//
//  SMImagePickerController.h
//  cherryproduct
//
//  Created by zou shigang on 14/8/30.
//  Copyright (c) 2014年 cherry. All rights reserved.
//

#import "BaseViewController.h"
#import "GPUImage.h"
#import "SMAlbumViewController.h"

@interface SMImagePickerController : UIViewController
{
    GPUImageStillCamera *stillCamera;
    GPUImageOutput<GPUImageInput> *filter;
    GPUImageOutput<GPUImageInput> *blurFilter;
    GPUImageCropFilter *cropFilter;
    GPUImagePicture *staticPicture;
}

@property (strong, nonatomic)  GPUImageView *imageFilter;
@property (strong, nonatomic)  UIScrollView *scollview_filter_btn;
@property (strong, nonatomic)  UIButton *flashToggleButton;
@property (strong, nonatomic)  UIButton *btn_ok;
@property (strong, nonatomic)  UIButton *btn_filter;
//新添加
@property (assign, nonatomic)  BOOL m_is_xuan_hd;
@property (assign, nonatomic)  BOOL m_is_header_edit;

@property (nonatomic, copy) DISMISS_D block_dismiss;

@property (nonatomic, weak) NSMutableArray * array_select;

@property (nonatomic, weak) ALAssetsLibrary * assetsLibrary;

- (void)doActionChangeFace:(id)sender;
- (void)doActionPigo:(id)sender;

- (void)doActionClose:(id)sender;
- (void)doActionPicture:(id)sender;
- (void)doActionTool:(id)sender;

@end





@interface ALbumAddImageFooter : UICollectionReusableView

@end

@interface AlbumAddImageCell : UICollectionViewCell

@property (weak, nonatomic) IBOutlet UIImageView * image_thumb;

@end

@interface AlbumTableCell : UITableViewCell

@property(nonatomic, strong) UIImageView * image_group;
@property(nonatomic, strong) UILabel * name;
@property(nonatomic, strong) UILabel * num;
@property(nonatomic, strong) UIButton * btn_select;

@end






@interface UIImage (KIAddin)

- (void)saveToAlbumWithMetadata:(NSDictionary *)metadata
                customAlbumName:(NSString *)customAlbumName
                completionBlock:(void (^)(NSURL* url))completionBlock
                   failureBlock:(void (^)(NSError *error))failureBlock;

- (UIImage *)fixOrientation;

@end












